import os;
import shutil;
Path1 = "frameworks\\runtime-src\\proj.win32\\Debug.win32";
Path2 = "frameworks\\runtime-src\\proj.win32\\Release.win32";
Path3 = ".\\runtime\\Debug\\win32\\";
Path4 = ".\\runtime\\Release\\win32\\";
print("########################################################");
print("###################### 1:Debug              ############");
print("###################### 2:Release            ############");
print("########################################################");
chose = input("chose:");
if chose == 1 :
	path = Path1;
elif chose == 2 :
	path = Path2;
files = [];
for parent,dirnames,filenames in os.walk(path):
        for filename in filenames:
			ext = os.path.splitext(filename)[1];
			if ext == ".exe" or ext == ".dll" :
				filePath = os.path.join(parent,filename);
				files.append(filePath.replace("\\","/"));

if chose == 1 :
	for file in files:
		shutil.copy(file,Path3);
elif chose == 2 :
	for file in files:
		shutil.copy(file,Path4);
	